<?php
	include '../../modules/errors/errorReporting.php';
	include '../../modules/connection/db_connect.php';
	
	$email = strip_tags($_POST['email']);
	$name = strip_tags($_POST['name']);
	
	if($email)
	
	$query = "INSERT INTO emails (name, email) VALUES ('$name', '$email')";
	$result = mysqli_query($connectDB, $query);
	
	echo "email=$email&name=$name";
	
	$message = "A new subscription\nEmail = $email\nName =$name";
	
	mail('sscott@crossingcommunities.org','Someone signed up on Looking In Speaking Out',$message);
?>